package io.bdmc.modules.bss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceMachineFan;
import io.bdmc.modules.bss.mapper.DeviceMachineFanMapper;
import io.bdmc.modules.bss.service.IDeviceMachineFanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 单盘风扇数据 服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Service
public class DeviceMachineFanServiceImpl extends ServiceImpl<DeviceMachineFanMapper, DeviceMachineFan> implements IDeviceMachineFanService {
    @Autowired
    DeviceMachineFanMapper _devicemachinefanMapper;

    @Override
    public MyPage<DeviceMachineFan> mySelectPage(MyPage<DeviceMachineFan> myPage) {
        return _devicemachinefanMapper.mySelectPage(myPage);
    }

    @Override
    public List<DeviceMachineFan> selectLastFanData(String diskSn) {
        return _devicemachinefanMapper.selectLastFanData(diskSn);
    }

    @Override
    public MyPage<DeviceMachineFan> selectPage(MyPage<DeviceMachineFan> myPage, QueryWrapper<DeviceMachineFan> w1) {

        return _devicemachinefanMapper.selectPage(myPage,w1);
    }
}
